from django.urls import path
from . import views, view_serializer, view_viewset
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('books', view_viewset.BooksView, basename='books')

urlpatterns = [
    # path('books',views.BooksView.as_view()),
    # path('books/<int:pk>',views.BookView.as_view()),

    # path('books',view_serializer.BooksView.as_view()),
    # path('books/<int:pk>',view_serializer.BookView.as_view()),
]
urlpatterns += router.urls
